package com.forenow.demo.demo20;

public abstract  class Employee {
    private  String name;
    private int number;
    private String birthday;
    private int sal;
    public Employee() {
    }

    abstract int earning();

    public int getSal() {
        return sal;
    }

    public void setSal(int sal) {
        this.sal = sal;
    }

    public Employee(String name, int number, String mydata, int sal) {
        this.name = name;
        this.number = number;
        this.birthday = mydata;
        this.sal=sal;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    /**
     * 输出对象的name,number和birthday
     * @return
     */
    public String toString(){
        System.out.println();
        return null;
    }
}
